-- MySQL Administrator dump 1.4
--
-- ------------------------------------------------------
-- Server version	5.0.51a-community-nt


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;


--
-- Create schema starrli
--

CREATE DATABASE /*!32312 IF NOT EXISTS*/ starrli;
USE starrli;

--
-- Table structure for table `starrli`.`buffetconfig`
--

DROP TABLE IF EXISTS `buffetconfig`;
CREATE TABLE `buffetconfig` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `name` varchar(100) NOT NULL default '',
  `configkey` varchar(100) NOT NULL default '',
  `configvalue` varchar(100) NOT NULL default '',
  `configfunction` varchar(100) NOT NULL default '',
  `configgroup` varchar(100) NOT NULL default '',
  `description` varchar(255) NOT NULL default '',
  `custom1` varchar(100) NOT NULL default '',
  `custom2` varchar(100) NOT NULL default '',
  `custom3` varchar(100) NOT NULL default '',
  `changedate` datetime default NULL,
  `beforetype` varchar(50) default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `starrli`.`buffetconfig`
--

/*!40000 ALTER TABLE `buffetconfig` DISABLE KEYS */;
INSERT INTO `buffetconfig` (`id`,`name`,`configkey`,`configvalue`,`configfunction`,`configgroup`,`description`,`custom1`,`custom2`,`custom3`,`changedate`,`beforetype`) VALUES 
 (1,'BUFFET_TYPE','BUFFET_TYPE_KEY','BuffetDefine_Lunch_Weekday','','CONFIG_RUNNING','','','','','2009-01-09 12:29:41','BuffetDefine_Lunch_Weekday'),
 (2,'PAYMENT_TYPE','NOT_PAID','0','','CONFIG_DEFINE','','','','',NULL,NULL),
 (3,'PAYMENT_TYPE','VISA','1','','CONFIG_DEFINE','','','','',NULL,NULL),
 (4,'PAYMENT_TYPE','MASTER','2','','CONFIG_DEFINE','','','','',NULL,NULL),
 (5,'PAYMENT_TYPE','AMEX','3','','CONFIG_DEFINE','','','','',NULL,NULL),
 (6,'PAYMENT_TYPE','DISC','4','','CONFIG_DEFINE','','','','',NULL,NULL),
 (7,'PAYMENT_TYPE','CASH','5','','CONFIG_DEFINE','','','','',NULL,NULL),
 (8,'PAYMENT_TYPE','','6','','CONFIG_DEFINE','','','','',NULL,NULL),
 (9,'PAYMENT_TYPE','','7','','CONFIG_DEFINE','','','','',NULL,NULL),
 (19,'PAYMENT_TYPE','','8','','CONFIG_DEFINE','','','','',NULL,NULL),
 (20,'ORDER_TYPE','Delivery','0','','','','','','',NULL,NULL),
 (21,'ORDER_TYPE','Eatin','1','','','','','','',NULL,NULL);
INSERT INTO `buffetconfig` (`id`,`name`,`configkey`,`configvalue`,`configfunction`,`configgroup`,`description`,`custom1`,`custom2`,`custom3`,`changedate`,`beforetype`) VALUES 
 (22,'ORDER_TYPE','Wait','2','','','','','','',NULL,NULL),
 (23,'ORDER_TYPE','Pickup','3','','','','','','',NULL,NULL),
 (24,'ORDER_TYPE','Buffet','4','','','','','','',NULL,NULL),
 (25,'ORDER_TYPE','Other','5','','','','','','',NULL,NULL),
 (30,'DEFAULT_TIP','defaultTips','10','(# / 100 ) as amount','','>5 persons per group with 10% tips automatically.','and 5 < ( select sum(quantity) from viewbuffetpeople where ticketid = aaa.ticketid) ','','',NULL,NULL),
 (31,'BUFFET_TIME','','true','','','','','','','2009-08-15 15:16:47',NULL),
 (32,'DISCOUNT_VALUE','','4','','','','','','',NULL,NULL),
 (33,'DISCOUNT_BTN','1','1','','','','','','',NULL,NULL),
 (34,'DISCOUNT_BTN','2','2','','','','','','',NULL,NULL),
 (35,'DISCOUNT_BTN','3','5','','','','','','',NULL,NULL),
 (36,'DISCOUNT_BTN','4','10','','','','','','',NULL,NULL),
 (37,'DISCOUNT_BTN','5','15','','','','','','',NULL,NULL);
INSERT INTO `buffetconfig` (`id`,`name`,`configkey`,`configvalue`,`configfunction`,`configgroup`,`description`,`custom1`,`custom2`,`custom3`,`changedate`,`beforetype`) VALUES 
 (38,'DISCOUNT_BTN','6','20','','','','','','',NULL,NULL),
 (39,'DISCOUNT_BTN','7','25','','','','','','',NULL,NULL),
 (40,'DISCOUNT_BTN','8','30','','','','','','',NULL,NULL);
/*!40000 ALTER TABLE `buffetconfig` ENABLE KEYS */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
